package com.nkdx.ws.controller;

import com.nkdx.ws.response.ApiResponse;
import com.nkdx.ws.service.RegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("region")
public class RegionController {

    @Autowired
    private RegionService regionService;

    @RequestMapping("citys")
    public ApiResponse findAllCitys(){
        return new ApiResponse().success(regionService.citys());
    }

}
